FROM docker.m.daocloud.io/alpine:3.12

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
    && apk add --no-cache tzdata \
    && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && rm -rf /var/cache/apk/*

COPY admission-webhook-demo /admission-webhook-demo

ENTRYPOINT ["./admission-webhook-demo"]
